
var module = {
name: "SRAM8K",
description: "SRAM 8192 x 8-bit",
    
pins : [

    [ 1, 'vcc'	],
    [ 2, 'vss'	],
    [ 3, '/oe'	],
    [ 4, '/we'	],
    [ 5, 'cs'	],

    [ 6, 'd0'   ],
    [ 7, 'd1'   ],
    [ 8, 'd2'  ],
    [ 9, 'd3'  ],
    [10, 'd4'   ],
    [11, 'd5'   ],
    [12, 'd6'   ],
    [13, 'd7'   ],

    [14, 'a0'	],
    [15, 'a1'	],
    [16, 'a2'  ],
    [17, 'a3'  ],
    [18, 'a4'	],
    [19, 'a5'   ],
    [20, 'a6'   ],
    [21, 'a7'   ],
    [22, 'a8'   ],
    [23, 'a9'   ],
    [24, 'a10'   ],
    [25, 'a11'   ],
    [26, 'a12'   ],


],

memory : {
    "ram" : 8192,
},

nodenames :
{

    vcc: 1,
    vss: 2,
    'func<ram>':3,

    '/oe':4,
    '/we':5,
    cs:6,
    gate:7,
    
    a0:10,
    a1:11,
    a2:12,
    a3:13,
    a4:14,
    a5:15,
    a6:16,
    a7:17,
    a8:18,
    a9:19,
    a10:20,
    a11:21,
    a12:22,
        
    d0:30,
    d1:31,
    d2:32,
    d3:33,
    d4:34,
    d5:35,
    d6:36,
    d7:37,

    _d0:40,
    _d1:41,
    _d2:42,
    _d3:43,
    _d4:44,
    _d5:45,
    _d6:46,
    _d7:47,
    
        
    '/d0':50,
    '/d1':51,
    '/d2':52,
    '/d3':53,
    '/d4':54,
    '/d5':55,
    '/d6':56,
    '/d7':57,

},
    
    segdefs :
    [
        [7,'+',0],
     
//     [50,'+',0],
//     [51,'+',0],
//     [52,'+',0],
//     [53,'+',0],
//     [54,'+',0],
//     [55,'+',0],
//     [56,'+',0],
//     [57,'+',0],
//     
     
     
     
    ],

        
    transdefs:
    [
        ['t00',6,7,2],
    //    ['t00',4,7,2],
     
        ['t00',7,40,30],
        ['t00',7,41,31],
        ['t00',7,42,32],
        ['t00',7,43,33],
        ['t00',7,44,34],
        ['t00',7,45,35],
        ['t00',7,46,36],
        ['t00',7,47,37],
     
//        ['t00',50,40,2],
//        ['t00',51,41,2],
//        ['t00',52,42,2],
//        ['t00',53,43,2],
//        ['t00',54,44,2],
//        ['t00',55,45,2],
//        ['t00',56,46,2],
//        ['t00',57,47,2],

     
     

    ]

};
